package com.mo.tv.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 站点表
 * </p>
 *
 * @author zh
 * @since 2018-04-26
 */
@TableName("zl_site")
public class ZlSite extends Model<ZlSite> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("NAME")
	private String name;
    /**
     * 站点状态：-1禁用，0 暂停，1 正常-普通，2 正常-高信任度
     */
	@TableField("STATUS")
	private Integer status;
    /**
     * 简介
     */
	@TableField("INTRO")
	private String intro;
	@TableField("CREATE_TIME")
	private Date createTime;
	@TableField("MODIFY_TIME")
	private Date modifyTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@TableField("ACTIVE_TIME")
	private Date activeTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@TableField("DEACTIVE_TIME")
	private Date deactiveTime;
    /**
     * tvid的前缀
     */
	@TableField("STB_PREFIX")
	private String stbPrefix;


    /**
     * 数据是否共享给移动端
     */
	@TableField("DATA_IS_SHARE_MOBILE")
	private int dataIsShareMobile;
	
	public int getDataIsShareMobile() {
		return dataIsShareMobile;
	}

	public void setDataIsShareMobile(int dataIsShareMobile) {
		this.dataIsShareMobile = dataIsShareMobile;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getActiveTime() {
		return activeTime;
	}

	public void setActiveTime(Date activeTime) {
		this.activeTime = activeTime;
	}

	public Date getDeactiveTime() {
		return deactiveTime;
	}

	public void setDeactiveTime(Date deactiveTime) {
		this.deactiveTime = deactiveTime;
	}

	public String getStbPrefix() {
		return stbPrefix;
	}

	public void setStbPrefix(String stbPrefix) {
		this.stbPrefix = stbPrefix;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ZlSite{" +
			"id=" + id +
			", name=" + name +
			", status=" + status +
			", intro=" + intro +
			", createTime=" + createTime +
			", modifyTime=" + modifyTime +
			", activeTime=" + activeTime +
			", deactiveTime=" + deactiveTime +
			", stbPrefix=" + stbPrefix +
			"}";
	}
}
